home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / graphics / pbm / pbm_man.zoo / man1 / pnmshear.1 < prev    next >
Text File  |  1994-08-27  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4. pnmshear(1)              USER COMMANDS                pnmshear(1)
  5.  
  6.  
  7.  
  8. NAME
  9.      pnmshear - shear a portable anymap by some angle
  10.  
  11. SYNOPSIS
  12.      pnmshear [-noantialias] _✓a_✓n_✓g_✓l_✓e [_✓p_✓n_✓m_✓f_✓i_✓l_✓e]
  13.  
  14. DESCRIPTION
  15.      Reads a portable anymap as input.  Shears it by  the  speci-
  16.      fied angle and produces a portable anymap as output.  If the
  17.      input file is in color, the output will be too, otherwise it
  18.      will  be  grayscale.   The  angle  is  in  degrees (floating
  19.      point), and measures this:
  20.          +-------+  +-------+
  21.          |       |  |\       \
  22.          |  OLD  |  | \  NEW  \
  23.          |       |  |an\       \
  24.          +-------+  |gle+-------+
  25.      If the angle is negative, it shears the other way:
  26.          +-------+  |-an+-------+
  27.          |       |  |gl/       /
  28.          |  OLD  |  |e/  NEW  /
  29.          |       |  |/       /
  30.          +-------+  +-------+
  31.      The angle should not get too close to  90  or  -90,  or  the
  32.      resulting anymap will be unreasonably wide.
  33.  
  34.      The shearing is implemented by looping over the source  pix-
  35.      els  and  distributing  fractions to each of the destination
  36.      pixels.  This has an  "anti-aliasing"  effect  -  it  avoids
  37.      jagged  edges and similar artifacts.  However, it also means
  38.      that the original colors or gray levels  in  the  image  are
  39.      modified.   If  you  need  to keep precisely the same set of
  40.      colors, you can use the -noantialias flag.   This  does  the
  41.      shearing by moving pixels without changing their values.  If
  42.      you want anti-aliasing and  don't  care  about  the  precise
  43.      colors, but still need a limited *number* of colors, you can
  44.      run the result through _✓p_✓p_✓m_✓q_✓u_✓a_✓n_✓t.
  45.  
  46.      All flags can be abbreviated to their shortest  unique  pre-
  47.      fix.
  48.  
  49. SEE ALSO
  50.      pnmrotate(1), pnmflip(1), pnm(5), ppmquant(1)
  51.  
  52. AUTHOR
  53.      Copyright (C) 1989, 1991 by Jef Poskanzer.
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sun Release 4.0   Last change: 12 January 1991                  1
  64.  
  65.  
  66.  
  67.